package cn.gmcx.lazy.izze.mapper;

import cn.gmcx.lazy.izze.pojo.ToDo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author GMCX
 * @since 2024-07-02
 */
@Mapper
public interface ToDoMapper extends BaseMapper<ToDo> {
    @Select("select * from to_do where master_id = #{userId}")
    List<ToDo> getToDoList(Integer userId);
}
